﻿@model Tyshka.Subroutines.ViewModels.TagListingModel 

@{
    ViewBag.Title = "Index";
}

<script language="javascript" type="text/javascript">
    $(document).ready(function () {
        $("#tagList").tablesorter();
    }
); 
</script>

    
<div class="row">
	<div class="span8">
		<div class="bright_block">
			<div class="row">
				<div class="span5">
					<h1>Tag Listing</h1>				
				</div>
			</div>
					
			<div class="row" style="margin-top:25px;">
				<div class="span7">
					To see all subroutines as one list, please select "Subroutines" from main menu.
				</div>
			</div>
		</div>
		<div class="bright_block">
			<h3>Stats</h3>
			<b>@Model.Items.Count</b> tags(s) found.
		</div>
	</div>
    <div class="span4 dcpu_logo">
		<!-- -->
	</div>
</div>
			
<div class="row">
    <div class="span12">	
	    <div class="bright_block">
		    <table class="table table-striped" id="tagList">
			    <thead>
				    <tr>
					    <th>Tag</th>
						<th>Subroutines Count</th>
					</tr>
				</thead>
				<tbody>
                    @foreach(var tag in Model.Items){
                    <tr>
                        <td>@Url.TagDetailLink(tag.Id, tag.Name)</td>
                        <td>@tag.SubroutinesCount</td>
                    </tr>
                    }
				</tbody>
    		</table>
		</div>
	</div>
</div>